package com.ym.medical.domain.param;

import com.ym.common.constant.BeanCovert;
import static com.ym.common.constant.ValidRule.Add;
import static com.ym.common.constant.ValidRule.Update;
import com.ym.medical.domain.entity.UserTaglibraryEntity;
import com.ym.common.annotations.CustomConstraint;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * 用户标签表对象 user_taglibrary
 *
 * @author ym
 * @date 2020-08-20
 */
@ApiModel("用户标签表-修改")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserTaglibraryUpdateParam extends BeanCovert<UserTaglibraryEntity>{

    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空", groups = {Add.class, Update.class})
    private Long id;

    @ApiModelProperty("订单id")
    @NotNull(message = "订单id不能为空", groups = {Add.class, Update.class})
    private Long orderId;

    @ApiModelProperty("被标签人")
    private Long tagedUserId;

    @ApiModelProperty("标签人")
    private Long tagUserId;

    @ApiModelProperty("标签类型(1：标准,2：自定义)")
    @NotEmpty(message = "标签类型不能为空", groups = {Add.class, Update.class})
    @Size(max = 2, message = "标签类型长度超过{max}", groups = {Add.class, Update.class})
    private String tagType;

    @ApiModelProperty("标签库ID")
    private Long tagId;

}
